<?php

namespace zhtfrontend\models\datas;

use Yii;

/**
 * This is the model class for table "{{%customer_tracking_record}}".
 *
 * @property integer $id
 * @property string $name
 * @property integer $status
 * @property string $mobile
 * @property integer $created_at
 * @property string $details
 * @property string $results
 * @property integer $admin_id
 * @property integer $relationship_id
 * @property integer $current_time
 * @property integer $next_time
 * @property integer $tracking_status
 */
class CustomerTrackingRecord extends \zhtfrontend\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%customer_tracking_record}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['status', 'created_at', 'admin_id', 'relationship_id', 'current_time', 'next_time', 'tracking_status'], 'integer'],
            [['name', 'mobile', 'details', 'results'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('zhtfrontend', '自增id'),
            'name' => Yii::t('zhtfrontend', '客户姓名'),
            'status' => Yii::t('zhtfrontend', '状态：潜在客户-未注册、意向客户-已注册、正式VIP-购买产品'),
            'mobile' => Yii::t('zhtfrontend', '客户联系方式'),
            'created_at' => Yii::t('zhtfrontend', '创建时间'),
            'details' => Yii::t('zhtfrontend', '跟踪详情'),
            'results' => Yii::t('zhtfrontend', '处理结果'),
            'admin_id' => Yii::t('zhtfrontend', '负责人id'),
            'relationship_id' => Yii::t('zhtfrontend', 'customer_relationship id'),
            'current_time' => Yii::t('zhtfrontend', '本次约谈时间'),
            'next_time' => Yii::t('zhtfrontend', '下次约谈时间'),
            'tracking_status' => Yii::t('zhtfrontend', '跟进方式状态'),
        ];
    }
}
